//
//  BasicTableViewCell.m
//  Item A House
//
//  Created by 甄奇文 on 15/5/27.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "BasicTableViewCell.h"

@implementation BasicTableViewCell
- (void)dealloc
{
    [super dealloc];
    [_title release];
    [_v_price release];
    [_v_houselayout release];
    [_v_housesize release];
    [_price release];
    [_huxing release];
    [_large release];
    [_addrinfo release];
    [_areainfo release];
    [_smallareaid release];
    [_countexpress release];
    [_houseward release];
    [_v_floor release];
    [_fitment release];
    [_v_phone release];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView
{
    self.title = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width - 10, 50)];
    self.title.numberOfLines = 0;
    [self.title setFont:[UIFont fontWithName:@"Helvetica-Bold" size:19]];
    [self.contentView addSubview:self.title];
    [self.title release];
    
    self.price = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 150, 60, [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.price.text = @"价格💰";
    [self.contentView addSubview:self.price];
    [self.price release];
    
    self.huxing = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 40, 60
    , [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.huxing.text = @"户型🏠";
    [self.contentView addSubview:self.huxing];
    [self.huxing release];
    
    self.large = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 70, 60
    , [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.large.text = @"面积🇨🇳";
    [self.contentView addSubview:self.large];
    [self.large release];

    self.v_price = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 150, 90, [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.v_price.textColor = [UIColor redColor];
    [self.contentView addSubview:self.v_price];
    [self.v_price release];
    
    self.v_houselayout = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 40, 90, [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.v_houselayout.textColor = [UIColor redColor];
    [self.contentView addSubview:self.v_houselayout];
    [self.v_houselayout release];
    
    self.v_housesize = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 70, 90, [UIScreen mainScreen].bounds.size.width / 2 - 10, 30)];
    self.v_housesize.textColor = [UIColor redColor];
    [self.contentView addSubview:self.v_housesize];
    [self.v_housesize release];
    
    self.aSp = [[UILabel alloc] initWithFrame:CGRectMake(0, 130, [UIScreen mainScreen].bounds.size.width, 1)];
    [self.aSp setBackgroundColor:[UIColor colorWithWhite:0.3 alpha:0.3]];
    [self.contentView addSubview:self.aSp];
    [self.aSp release];
    
    self.addrinfo = [[UILabel alloc] initWithFrame:CGRectMake(10 , 140, [UIScreen mainScreen].bounds.size.width / 3, 30)];
    [self.contentView addSubview:self.addrinfo];
    [self.addrinfo release];
    
    self.areainfo = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width /  2 -  75, 140, [UIScreen mainScreen].bounds.size.width / 3, 30)];
    [self.contentView addSubview:self.areainfo];
    [self.areainfo release];
    
    self.smallareaid = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 5, 140, [UIScreen mainScreen].bounds.size.width / 3, 30)];
    [self.contentView addSubview:self.smallareaid];
    [self.smallareaid release];
    
    self.aSp = [[UILabel alloc] initWithFrame:CGRectMake(0, 180, [UIScreen mainScreen].bounds.size.width, 1)];
    [self.aSp setBackgroundColor:[UIColor colorWithWhite:0.3 alpha:0.3]];
    [self.contentView addSubview:self.aSp];
    [self.aSp release];
    
    self.countexpress = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 150, 190, [UIScreen mainScreen].bounds.size.width / 2, 20)];
    self.countexpress.font = [UIFont boldSystemFontOfSize:16];
    [self.contentView addSubview:self.countexpress];
    [self.countexpress release];
    
    self.houseward = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2, 190, [UIScreen mainScreen].bounds.size.width / 2, 20)];
    self.houseward.font = [UIFont boldSystemFontOfSize:16];
    [self.contentView addSubview:self.houseward];
    [self.houseward release];
    
    self.v_floor = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 150, 220, [UIScreen mainScreen].bounds.size.width / 2, 20)];
    self.v_floor.font = [UIFont boldSystemFontOfSize:16];
    [self.contentView addSubview:self.v_floor];
    [_v_floor release];
    
    self.fitment = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2, 220, [UIScreen mainScreen].bounds.size.width / 2, 20)];
    self.fitment.font = [UIFont boldSystemFontOfSize:16];
    [self.contentView addSubview:self.fitment];
    [self.fitment release];
    
    
    self.v_phone = [[UILabel alloc] initWithFrame:CGRectMake(0, 250, [UIScreen mainScreen].bounds.size.width, 30)];
    self.v_phone.font = [UIFont boldSystemFontOfSize:19];
//    [self.v_phone setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.7]];
    [self.contentView addSubview:self.v_phone];
    [self.v_phone release];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
